import sys


str = sys.stdin.readline()
print(str)

num = input("请输入一个数字：")
print(num)

sys.stdout.write("hello")
print("world")


file = open('a.txt','r',buffering=1)
print(file.read())
file.close()

#print(file2.readline())
#print(file2.readline())
#print(file2.readlines()) #表示一个数列

#list[]   turple ()
#set {1,2,3} diet{}

#a 模式代表追加写
with open('a.txt','a',encoding='utf-8',buffering=1) as file:
 file3.write("hello world")
